module.exports={
    publicPath:"/music",
    //webpack-dev-server相关配置
    devServer:{
      proxy:{
        '/api':{
          target:'http://171.220.242.237:3001',
          ws:true,
          changeOrigin:true,//接口跨域
          pathRewrite:{
            '^/api':''//通过pathRewrite重写地址，将前缀/api转为/
          }
        }
      }
    },
  }

//   http://171.220.242:3002/recommend/banner
//   /api/recommend/banner
//   http://171.220.242:3002/recommend/banner
//   '^/api':'/api'
//https://cn.vuejs.org/v2/guide/instance.html


